package cn.matezk.cloud.beans;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class NotifyConfig {
    private List<String> mobile = new ArrayList<>();
    private List<Event> events = new ArrayList<>();
    private List<Contacts> contacts = new ArrayList<>();

    @Data
    public static class Event {
        private String eventId;
        private Boolean wechatEnable = Boolean.FALSE;
        private Boolean smsEnable = Boolean.FALSE;
        private Boolean voiceEnable = Boolean.FALSE;
        // 是否重复推送
        private Boolean repeatEnable = Boolean.FALSE;
        // 推送间隔(分钟)
        private Integer repeatInterval = 5;
        // 推送次数
        private Integer repeatTimes = 2;
    }

    @Data
    public static class Contacts {
        private String name;
        private String mobile;
    }
}
